package study.springcloud.client.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import study.eggs.result.Result;
import study.springcloud.client.feign.api.EchoRequest;

@FeignClient(name = "study-springcloud-feign-server")
public interface EchoClient {

    @PostMapping("/echo")
    Result echo(@RequestBody EchoRequest request);
}
